<div id="widget">
    <div id="wtop">
        <div id="wlogo">
            <p class="textcolor">Je suis membre de</p>
            <a {$widget.target} href="{$URL_PATH}{$widget.addUrl}" title="e-Citizen.com, 1er site e-commerce &eacute;thique">
                <img src="{$IMG_PATH}widget/logo-trans.png" alt="e-Citizen" />
            </a>
        </div>
    </div>
    <div id="wmenu">
        <div class="wbutton active" id="wbutton-profil" onclick="showProfil()">Mon profil</div>
        {if $widget.params.showWishlist == 1 && $widget.wishes|@sizeof > 0}
        <div class="wbutton" id="wbutton-wishlist" onclick="showWL()">Ma wishlist</div>
        {/if}
    </div>
    <div id="wcontent">
        <div id="wprofil">
            <div id="wprofil-top">
                <div id="wleft">
                    {if $widget.user.soutien|@sizeof > 0}
                    <p class="textcolor wsupport">Les associations que je soutiens : </p>
                    {/if}
                    <div id="wprofil-pict">
                        <a {$widget.target} href="{$widget.user.url}{$widget.addUrl}" title="Profil de {$widget.user}">
                            <img src="{$widget.user.recadre}" alt="" />
                        </a>
                    </div>
                    <div id="wbutton-join">
                        <a {$widget.target} href="{$URL_PATH}login/{$widget.addUrl}" title="Rejoignez e-citizen !">Rejoindre</a>
                    </div>
                </div>
                <div id="wright">
                    {foreach from=$widget.user.soutien item=assoc}
                    <div class="wassoc">
                        <a {$widget.target} href="{$assoc.url}{$widget.addUrl}" title="Voir l'association {$assoc}">
                            <img src="{$assoc.logo}" />
                        </a>
                    </div>
                    {/foreach}
                </div>
            </div>
            <div id="wprofil-bottom">
                {if $widget.user.childrenByWidget|@sizeof > 0}
                <p class="textcolor wrecrut">Ce widget m'a permis de recruter les soutiens suivants : </p>
                <div id="wlist-recrut">
                    {section loop=$widget.user.childrenByWidget name=c max=3}
                        <div class="wpict">
                            <a {$widget.target} href="{$widget.user.childrenByWidget[c].url}{$widget.user.childrenByWidget[c].addUrl}" title="Profil de {$widget.user.childrenByWidget[c]}">
                                <img src="{$widget.user.childrenByWidget[c].mini}" alt="{$widget.user.childrenByWidget[c]}" />
                            </a>
                    </div>
					{/section}
                </div>
                {/if}
            </div>
            <div id="wgetwidget">
                <a {$widget.target} href="{$URL_PATH}widget/conf/{$widget.addUrl}" title="Cr&eacute;er et personnaliser mon widget">
                    Cr&eacute;er mon propre widget
                </a>
            </div>
        </div>
        <div id="wwishlist">
            <div id="wwishlist-top">
                <div id="wwishlist-left">
                    <p class="textcolor wwishlist-text">
                        Bio, <br />&eacute;quitable<br /> et solidaire...
                    </p>
                </div>
                <div id="wwishlist-right">
                    <img src="{$URL_PATH}/images/widget/caddie.png" alt="" />
                </div>
            </div>
            <div id="wwishlist-content">
                <div id="wproducts">Voici mes produits pr&eacute;f&eacute;r&eacute;s</div>
                {foreach from=$widget.wishes item=wish}
                <div class="wwish">
                    <div class="wimg">
                        <a {$widget.target}href="{$wish.url}{$widget.addUrl}" title="{$wish} par {$wish.vendor}">
                            <img src="{$wish.imgListing}" alt="{$wish} par {$wish.vendor}" />
                        </a>
                    </div>
                    <div class="wdesc">
                        <p class="textcolor wtitre">{$wish}</p>
                        <p class="textcolor">
                            par
                            <a {$widget.target} href="{$wish.vendor.url}{$widget.addUrl}" title="L'espace de {$wish.vendor}">
                                {$wish.vendor}
                            </a>
                            {$wish.prix} &euro;
                       </p>
                    </div>
                </div>
                {/foreach}
            </div>
            <div id="wwishlist-bottom">
                <p class="textcolor">
                    Chaque achat permet de reverser <strong>5%</strong> aux associations de votre choix
                </p>
                <div id="wbutton-shop">
                    <a {$widget.target} href="{$URL_PATH}{$widget.addUrl}">Acc&eacute;der &agrave; la boutique</a>
                </div>
            </div>
        </div>
    </div>
    <div id="wbottom"></div>
</div>